fix for adding port into the config file