added support for url fetching