In fact, codec != serializer, but we should keep them around the same place since this serializer is related to protocols. We should have a quick chat to see where would be the best place and name (maybe this class shouldn't be called codec after all)