adds logic for scraping