       callback "Remote host is not provided"
       return no
 
-    options.mountpoint = escapePath path.join config.usersPath, username, config.baseMountDir, remotehost
+    options.mountpoint = escapePath path.join config.usersPath, username, config.baseMountDir, remoteuser
+    options.mountpoint+= "@#{escapePath remotehost}"
 
     unless safeForUser username, options.mountpoint
       console.error "User [#{username}] is trying to make something bad: ", options.mountpoint


    # options =
    #   username   : String # koding username
    #   remotehost : String # FTP server address

    {username, remotehost} = options

    unless remotehost
      callback "Remote host is not given"
      return no

    options.mountpoint = escapePath path.join config.usersPath, username, config.baseMountDir, remotehost

    unless safeForUser username, options.mountpoint
      console.error "User [#{username}] is trying to make something bad: ", options.mountpoint
      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?

    # return =
    #   mounted: Bool # true/false
    #   remotehost: String # remote FTP/SFTP hostname
    #   remoteuser: String # remote FTP/SFTP username
    #   mountpoint: Strint # full path to the mountpoint

    {username, remoteuser, remotehost, mountpoint} = options

    options.mountpoint = escapePath path.join config.usersPath, username, config.baseMountDir, remoteuser
    options.mountpoint+= "@#{escapePath remotehost}"

    console.log options

    unless safeForUser username, options.mountpoint
      console.error "User [#{username}] is trying to make something bad: ", options.mountpoint
      callback "You are not authorized to do this."
      return no

    startsWith = (str, part)-> str.trim().indexOf(part) is 0
    endsWith   = (str, part)-> str.trim().indexOf(part, str.trim().length - part?.length) isnt -1

    res = {mounted : false, remotehost, mountpoint : options.mountpoint}

    rs = fs.createReadStream '/proc/mounts', flags: 'r'
    rs.setEncoding()

