 
   fetchCompiledApp:(manifest, callback)->
 
-    {name} = manifest
-    appPath = @getAppPath manifest
-    indexJsPath = "#{appPath}/index.js"
-    @kiteController.run "cat #{escapeFilePath indexJsPath}", (err, response)=>
-      callback err, response
+    indexJs = FSHelper.createFileFromPath "#{@getAppPath manifest}/index.js"
+    indexJs.fetchContents (err, response)=> callback null, response
 
   # #
   # MISC

        if err
          @fetchAppsFromFs (err, apps)=>
            if err then callback()
            else
              callback null, apps
        else
          callback? err, apps



    {profile} = KD.whoami()
    path = if 'string' is typeof manifest then manifest else manifest.path
    path = if /^~/.test path then "/home/#{profile.nickname}#{path.substr(1)}" else path
    return path.replace /(\/+)$/, ""

  # #
