added support for map reduce and map reduce library