add state machine to registrations