using flags to specify the configuration file and port