deal with the LUA interface