add MessageEnum and replace it in MessageCodec