added scope to CodecDef