refactor(main) rm terminal