add support for snappy compression