beginning to merge the scraper and tor control code