aahh state machines