fsm-as-promised