         sitemap += "<url><loc>#{@options.uri.address}/#!/#{url}</loc></url>"
     sitemap += sitemapFooter
 
-  generateSitemapName: (skip)->
-    return  "sitemap_" + skip + "_" + (skip + NAMEPERPAGE)
+  generateSitemapName: (groupPageNumber, skip)->
+    return  "sitemap_" + groupPageNumber + "_" + skip + "_" + (skip + NAMEPERPAGE) + ".xml"
 
   saveSitemap: (name, content)->
     {JSitemap} = @bongo.models

  generate:=>
    {JName, JGroup, JSitemap} = @bongo.models


    groupSelector = {
      privacy:'public'
    }

          for group in jGroups
            publicGroups.push group.slug

          selector = {
            'slugs.group': { $in: publicGroups }
          }
