added optional index/sitemap generation