rn formatter to codec
added Decoder, Encoder instead of codec