changed to latest mapreduce api