updated message serialization according to new arrangements