   loadDir= (dirname,superMeta,visited) ->   #recursive
     defaultModName = path.join(dirname,'_default.meta')
     meta= if isModuleSync(defaultModName)
-      cache[dirname+'/']= load(defaultModName,superMeta)
+      metacache[dirname+'/']= load(defaultModName,superMeta)
     else
       superMeta
     for filename in fs.readdirSync(dirname)

    m= require(modname)
    if m?.meta
      itsMeta= meta_lookup(modname)
      cache[modname]= extend(itsMeta,m.meta,modname)
    if sitesModuleSignature.test(modname)
      siteroot= path.dirname(modname)
      siteLookupRoot ?= siteroot

          if moduleSignature.test(filename)
            stripped= stripExtension(filename)
            if metafileSignature.test(filename)
              metacache[filename.replace(stripMetaExtension,'$1')]= load(stripped,meta)
            else
              modules.unshift(stripped)
    return meta
  visited= {}
  visited[fs.lstatSync(rootdir).ino]= true
  metacache[rootdir+'/']= superMeta  # this will be overridden if _default_meta found
  meta= loadDir(rootdir,superMeta,visited)
  preload(modules,meta,supersites)
  return meta
