         requiredDomains.push "#{nickname}.#{domain}"
     else
       requiredDomains = ["#{groupSlug}.#{domain}", "shared.#{groupSlug}.#{domain}"]
-    @createDomains account, requiredDomains, vm.hostnameAlias
+
+    {hostnameAlias} = vm
+    @createDomains {account, domains:requiredDomains, hostnameAlias, stack}
 
   @createAliases = ({nickname, type, uid, groupSlug})->
     domain       = 'kd.io'

                planOwner : "user_#{account._id}"
                webHome   : account.profile.nickname
                groups    : wrapGroup group
              }, callback

      else

module.exports = class JVM extends Module

  {permit} = require './group/permissionset'
  {ObjectId, secure, dash, signature} = require 'bongo'
  {uniq}   = require 'underscore'

  {argv} = require 'optimist'
