apply the message pack for protocol