added support for ports to the url class