more complete handling of COMPACT/COMPACT-DECODED