state machines live