refactor(main): use Maybe