added ResetEvent to state machine