comand history and rotation fixes