make category scraping more robust