untested task for generating csvs from documents with list of keys