add status output to Lua