fix to recognize the compression option correctly