replace lua_open