added support for mapred