rather than doing a straight match here, a wait_until might work better. I ran into some non-deterministic behavior.