 
     if params.state
       domainManager.dnsManager.registerNewRecordToProxy record, (response)=>
-        @update {"domain":params.domainName}, {'$push': {"vms":params.vmName}}
+        @update {"domain":params.domainName}, {'$push': {"hostnameAlias":params.vmName}}
         callback "Your domain is now connected to #{params.vmName} VM." if response?.host?
 
     else
       domainManager.dnsManager.removeDNSRecordFromProxy record, (response)=>
-        @update {"domain":params.domainName}, {'$pull': {"vms":params.vmName}}
+        @update {"domain":params.domainName}, {'$pull': {"hostnameAlias":params.vmName}}
         callback "Your domain is now disconnected from the #{params.vmName} VM." if response?.res?
+    """
 
   @updateWhiteList = (params, callback)->
     if params.op == 'addToSet'

    domainManager.dnsManager.removeDNSRecordFromProxy record, callback

  @bindVM = secure ({connection:{delegate}}, params, callback)->
    record =
      mode          : "vm"
      username      : delegate.profile.nickname

      if data.actionstatus is "Success"
        @createDomain client,
          domain   : data.description
          regYears : params.years
          orderId  :
            resellerClub : data.entityid
          , (err, model) =>
            callback err, model
      else
