added support for compression with snappy