patch to enable rotation of the constraints basis (test in progress!)