bugfix: logic error in rotate()
alternate implementation of stop etc.