made url fetching optional