save of rotation state seems to be working now, needs some clean up and testing though.