 
   stripTemplate =(str, konstructor)->
     {slugTemplate} = konstructor
-    slugRe = /^(.+)?(#\{slug\})(.+)?$/
-    re = RegExp slugTemplate.replace slugRe, (tmp, begin, slug, end)->
-      "^#{begin ? ''}(.*)#{end ? ''}$"
+    slugStripPattern = /^(.+)?(#\{slug\})(.+)?$/
+    re = RegExp slugTemplate.replace slugStripPattern,
+      (tmp, begin, slug, end)-> "^#{begin ? ''}(.*)#{end ? ''}$"
     str.match(re)?[1]
 
   handleNotFound:(route)->

      '/:name?/Recover'   : ({params:{name}})-> mainController.doRecover name

      # nouns
      '/:name?/Groups'                  : goToSection.Groups
      '/:name?/Activity'                : goToSection.Activity
      '/:name?/Members'                 : goToSection.Members
      '/:name?/Topics'                  : goToSection.Topics
      '/:name?/Develop'                 : goToSection.StartTab
      '/:name?/Apps'                    : goToSection.Apps
      '/:name?/Account'                 : goToSection.Account

      # content displays:
      '/:name?/Topics/:topicSlug'       : goToContent.Topics
      '/:name?/Activity/:activitySlug'  : goToContent.Activity
      '/:name?/Apps/:appSlug'           : goToContent.Apps

      '/recover/:recoveryToken': ({params:{recoveryToken}})->
        mainController.appReady =>

  getRoutes =->
    mainController = KD.getSingleton 'mainController'

    nouns = createLinks(
      'Activity Apps Groups Members Topics'
      (sec)=> @createContentDisplayHandler sec
    )

    content = createLinks(
      'Account Activity Apps Groups Members StartTab Topics'
      (sec)-> ({params:{name}, query})-> @go sec, name, query
    )
