add a size field to the message header