better url handling with the url class