update port numbers