cleanup sitemap logic