add state machine to company