allow motor state to be changed in both directions