better indexing
catching error if URL is unavailable