updating port numbers