       , (err)=>
         if not err
           loader.notificationSetTitle "Fetching compiled app..."
-          @fetchCompiledApp app, (err, res)=>
+          @fetchCompiledAppSource app, (err, res)=>
             if not err
               @defineApp name, res
               loader.notificationSetTitle "App compiled successfully"

    if script = KD.getAppScript name
      callback null, script
    else
      @fetchCompiledApp manifest, (err, script)=>
        if err
          @compileApp name, (err)->
            callback err, script

      else
        justFetchApps()

  fetchCompiledAppSource:(manifest, callback)->

    indexJs = FSHelper.createFileFromPath "#{@getAppPath manifest}/index.js"
    indexJs.fetchContents (err, response)=> callback null, response
