     KD.config.environment = if location.hostname is 'koding.com'\
                             then 'production' else 'development'
 
+    KD.config.groupName   = KD.utils.getGroupNameFromLocation()
+
   registerRoutes = ->
 
     require './core/routes.coffee'

console.time 'Koding.com loaded'
require './core/utils'
require './core/KD.extend.coffee'

# register appclasses
About    = require './about/AppController'
Home     = require './home/AppController'
Login    = require './login/AppController'
Features = require './features/AppController'
Legal    = require './legal/AppController'
Pricing  = require './pricing/AppController'

# bootstrap app
MainController = require './core/maincontrollerloggedout'

    require './pricing/routes.coffee'
    require './legal/routes.coffee'
    require './features/routes.coffee'
    require './teams/routes.coffee'


  setConfig()
