added setting port by command line