       return {form,lines}
 
 
-    {form,lines} = createForm ["type","title","hostname","username","password","port","accessKey","secret"]
-    lines.accessKey.hide()
-    lines.secret.hide()
+    # {form,lines} = createForm ["type","title","hostname","username","password","port","accessKey","secret"]
+    {form,lines} = createForm ["type","hostname","username","password"]
+    # lines.accessKey.hide()
+    # lines.secret.hide()
     modal.addSubView form
     # modal.setHeight 450
 

        item.on "change",(event,value)->
          # log value,s3Form,form
          switch value
            when "ftp","sftp","webdav"
              lines.hostname.show()
              lines.username.show()
              lines.password.show()
              lines.port.show()
              lines.accessKey.hide()
              lines.secret.hide()
            when "s3"
              lines.accessKey.show()
              lines.secret.show()
              lines.hostname.hide()
              lines.username.hide()
              lines.password.hide()
              lines.port.hide()

      lines = {}
      form = new KDFormView

              username      : f.username
              password      : f.password
              port          : f.port
          # when "s3"
          #   jm = new KD.remote.api.JMountS3
          #     title         : f.title ? f.hostname
          #     accessKeyId   : f.accessKey
          #     secret        : f.secret
          # when "webdav"
          #   jm = new KD.remote.api.JMountWebDav
          #     title         : f.title ? f.hostname
          #     hostname      : f.hostname
          #     username      : f.username
          #     password      : f.password
          #     port          : f.port

        jm.save (err)=>
          if err
