       return error "Domain is not provided"
 
     {delegate} = client.connection
-    {err, domain, type, slug, prefix} = parseDomain domain
-
-    return callback err  if err
-
     {group}    = client.context
     {nickname} = delegate.profile
 
-    if type is 'internal'
-
-      if slug isnt nickname
-        return error "Creating root domains is not allowed"
-
-      slug = "koding"  if nickname is slug
-      unless group is slug
-        return error "Invalid group"
+    {err, domain, type, slug, prefix} = parseDomain domain, { nickname, group }
+    return callback err  if err
 
     JDomain.one {domain}, (err, model)->
       return callback err  if err


    { domain, account, group, stack, hostnameAlias } = options

    domainData = { proposedDomain: domain, group }
    domainData.hostnameAlias = hostnameAlias  if hostnameAlias?


      callback null, filterDomains domains, delegate, group


  parseDomain = (domain, { nickname, group })->

    { userSitesDomain } = KONFIG

