added simple serialization for odml