scraper related helper functions