docs: function loadAttachments (doc, root, prefix) {
    doc.__attachments = doc.__attachments || []
    try {
      fs.statSync(root)
    } catch(e) {
      throw e
      throw new Error("Cannot stat file "+root)
    }
    doc.__attachments.push({root:root, prefix:prefix});
  }