racemode tweaks, add some features to map rotation code