fixed ability to determine whether a state change is allowed