PERDI-294  first draft of map reduce for files consolidation