   # #
 
   fetchApps:(callback)->
-    
+
     if Object.keys(@constructor.manifests).length isnt 0
       callback null, @constructor.manifests
     else

  compileSource:(name, callback)->

    kallback = (app)=>
      
      return warn "#{name}: No such app!" unless app

      {source} = app
      {blocks} = source
      
      orderedBlocks = []
      for blockName, blockOptions of blocks
        blockOptions.name = blockName

        files.forEach (file)->
          if /\.kdapp$/.test file.name
            apps.push file

        apps.forEach (app)->
          manifest = if app.type is "folder" then FSHelper.createFileFromPath "#{app.path}/.manifest" else app
          stack.push (cb)->
            manifest.fetchContents cb

        manifests = @constructor.manifests
        async.parallel stack, (err, results)->
          if err
