game engine fixes