improvements to serialization
improvements to chat