implement EDI serialization