add compressor functionality