remove state machines