[DF-883] move implementation to command, fix rotation