add state machine id