rotate and command: fixes #41 and rotation of #25