added mapreduce serialization