to impliment return docs all you need to do is wrap this in `if (opts.returnDocs === false) {`