       
       sshopts = [ "-o", "ssh_command=/usr/bin/ssh -o #{config.sshfs.opts},fsname=#{remotehost}", "#{remoteuser}@#{remotehost}:/", options.mountpoint]
       console.log sshopts  
-      createMountpoint options, (err, res)=>
+      @createMountpoint options, (err, res)=>
         if err
           callback err
         else


    {username} = options
    args = ['-m', username]
    spawnWrapper config.cagefsctl, args ,(err, res)->
      if err?
        log.error error = "[ERROR] Couldn't remount user's VE - username #{username}: #{stderr}"
        callback error

      options.mountpoint = path.join config.usersPath, username, config.baseMountDir, remotehost
      
      # fetch user ID for curlftfs command
      @spawnWrapper '/usr/bin/id', ['-u',username], (err,res)=>
        if err?
          log.error error = "[ERROR] Can't find user ID: #{err}"
          callback error
        else
          log.info "[OK] user ID for user #{username} is #{res}"
          ftpfsopts = "#{config.ftpfs.opts},uid=#{res},gid=#{res},fsname=#{remotehost},user=#{remoteuser}:#{remotepass}"
          @createMountpoint options,(err,res)=>
            if err
              callback err
            else
              @spawnWrapper config.ftpfs.curlftpfs,['-o', ftpfsopts, remotehost, options.mountpoint] , (err, res)=>
                if err?
                  log.error error = "[ERROR] couldn't mount remote FTP server #{remotehost}: #{err}"
                  callback error
