       title = (source[title] for title in titles).reduce (x, y) -> x ?= y
       order = (source[order] for order in orders).reduce (x, y) -> x ?= y
       # insert new nav into the tree
-      nav = insertNavIntoTree file.relative, hrefExtension, title, order, rootPath
+      nav = insertNavIntoTree file.relative, hrefExtension, title, order
       # set properties of vinyl object XXX does this need error handling?
       for target in targets
         obj = file

  exists: no
  title: null

root = null
rootName = null

orderGen = 9999

insertNavIntoTree = (relativePath, extension, title, order, rootPath) ->
  _path = path.resolve '/', relativePath
    .replace /index\.[^/]+$/, ''              # index identified with directory
    .replace /\.[^./]+$/, '.' + extension     # e.g. '.jade' -> '.html'

    orders ?= 'order'
    hrefExtension ?= 'html'
    demoteTopIndex ?= no
    # single options don't have to come wrapped in an Array
    sources = [ sources ] unless Array.isArray sources
    targets = [ targets ] unless Array.isArray targets
