added mr operations with serialization