changed the scraper to use threads