implement class/race exits and remove level exits