add state machine events