added gzip/deflate support