refactor(win) processOutput