     else if domain and rule
       createConnection()
       @bindRuleToDomain domain, rule
-    else if vm and extra
+    else if machine and extra
       createConnection()
 
   bindRuleToDomain: (domain, rule) ->

    else if domain and rule
      removeConnection()
      @unboundRuleFromDomain domain, rule
    else if vm and extra
      removeConnection()

  connect:(source, target, internal = no)->


    items = parseItems source, target
    return  if Object.keys(items).length < 2
    {domain, machine, rule, extra} = items

    return new KDNotificationView title: "FIXME ~GG"

    if domain and machine
      jDomain = domain.dia.getData().domain # JDomain
      vmName  = machine.dia.getData().title # JVM.hostnameAlias
      jDomain.unbindVM hostnameAlias: vmName, (err)=>
        return KD.showError err  if err
        jDomain.hostnameAlias.splice jDomain.hostnameAlias.indexOf(vmName), 1
