prepare support for map reduce