use buffered before gzip