draft state machine