using URL to fetch document