make sure that the message object is created in a pickleable state