added command line port flag