 _ = require('underscore')._
 connect = require('connect')
-path = require('path')
-normalize = path.normalize
 path = require('path')
 normalize = path.normalize
 fs = require('fs')

    dirs = baseSiteStack  # note: the stack is maintained in reverse order
    userPath= dirs[0]
    defaultPath= dirs[1]
    loadTree(defaultPath, [])
    rawmetas[defaultPath]['/']= extend(rawmetas[defaultPath]['/'],options,'(options)')
    loadTree(userPath, [defaultPath])

  meta_lookup: meta_lookup


                siteroot= path.dirname(fullname)
                siteLookupRoot ?= siteroot
                sites[siteroot]= m
                for sitepath in m.paths
                  loadTree(siteStack.concat([normalize(sitepath)]))

      visited= {}
      visited[fs.lstatSync(rootdir).ino]= true
      loadDir('', visited)
      meta= {}
      for sitename in siteStack
        if rawmetas[sitename]
          meta= extend(meta,rawmetas[sitename]['/'],sitename+'/')
      metacache[rootdir+'/']= meta
