messages can now be dumped to JSON