patching fsm