fix patch bug, extend url to include all ports