add error handling to scrape