I think I prefer to pass the codec along with the message