update the port configurations