using the new code via the old method; not using the state machine yet