added support for url.URL type