stateMachine broken, but had to quit for now