unfinished changes to make the serialization and deserialization of messages work correctly ...