make Codec public