modified to work with game server rules