split state machine for max and dominic