cleaned up some endgame stuff