added experimental code for using MapReduceCommand