add lossless-compression switch