final demon for state machine