cleanup
remove unneeded toplevel fsm