re arrange methods in LuaGenerator