adding map reduce support