add ofxStateMachine