main func changed to scrape