scan: fix compression suppor