ADD: return fsm when passing window as param