add CHR type in compress.
implement expand.