error: attempt to call global `tag' (a nil value) How looks the following line if I need it compatible with Lua 4.1? if tag(arg[1])~=tag(_OUTPUT) then Thank you Markus