starts debugging
refactors core scrape logic