more work on serialization of msg bodies