initial version of chunk creation for MapReduce