fix(main): read port from envvar