refactored all code, loop and pad scraping multi-threaded