add mapReduce and spies