           JVM.createDomains hostnameAlias
 
           vm = new JVM {
-            name    : "#{name}#{uid}"
-            planCode : planCode
-            planOwner: planOwner
-            users   : [{ id: user.getId(), sudo: yes, owner: yes }]
-            groups  : [{ id: group.getId() }]
+            name      : "#{name}#{uid}"
+            planCode  : planCode
+            planOwner : planOwner
+            users     : [{ id: user.getId(), sudo: yes, owner: yes }]
+            groups    : [{ id: group.getId() }]
             hostnameAlias
             usage
           }


  @createAliases = ({nickname, type, uid, groupSlug})->
    domain       = 'kd.io'
    if type is 'user'
      prefix = if uid > 0 then "vm#{uid}." else ""
      aliases = ["#{prefix}#{nickname}.#{groupSlug}.#{domain}"]
      if groupSlug is 'koding'
        aliases.push "#{prefix}#{nickname}.#{domain}"
    else if type is 'group'
      if uid is 0
        aliases = ["#{groupSlug}.#{domain}"
                 "shared.#{groupSlug}.#{domain}"]
      else
        aliases = ["shared-#{uid}.#{groupSlug}.#{domain}"]


      return callback err  if err
      account.fetchUser (err, user)=>
        return callback err  if err
        if type is 'user'
          name = "#{groupSlug}~#{user.username}-"
        else
          name = "#{groupSlug}-"

        nameFactory = (require 'koding-counter') {
          db          : JVM.getClient()
