going to use a lua_state typeclass