rerenamed ModelCodec - working on RawFormat