refining state machine tracking in doombot