replace with ofxStateMachine