use new mapreduce api