improve document scraper