compatibility for Lua