support specifying the index of rotation (#8).