added the compression option