set_current_window util
moved dofile to lua_state_wrapper