fixed/added support for multi doc (flatfile) injection