state machine stub