serialization of Payload