add gzip support for buffers