gate modified to use new *args version of the stateMachine's addTransitions method. ot sure what else was changed