make message and messagestatus serializable