bugfixes to extract and scrape main method
refactor setup, scraping, frontend