stag comparison, ditch state machines