fixed always using "deflate"