add an applyrotation command