changed hardcoded values for ports to command line args