 
         switch mount.remotetype
           when "ftp"
-            console.log "Calling....."
             @mountFtpDrive mount, callback
 
   # Safe

      callback "You are not authorized to do this."
      return no

    @spawnWrapper '/sbin/fuser', ['-mk',options.mountpoint],(err,res)=>
      @spawnWrapper '/bin/umount', [options.mountpoint],(err, res)=>
        if err?
          log.error error = "Can't umount #{options.mountpoint}: #{err}"
          callback error
        else
          log.info info = "Directory #{options.mountpoint} umounted"
          @remountVE options,(err,res)=>
            if err
              callback err
            else
              fs.rmdir options.mountpoint, (err)->
                # not a big issue
                if err?
                  console.warn "Couldn't remove mountpoint #{options.mountpoint}: #{err.message}"
                else
                  console.log "mountpoint #{options.mountpoint} has been removed"
                callback null, info

  # Safe
  readMountInfo: (options, callback)->

        log.info info = "User: #{username} virtual environment remounted."
        callback null, info

  spawnWrapper : (command, args, callback)->
    wrapper = spawn command,args
    wrapperErr = ""
    wrapper.stderr.on 'data',(data)->
