add snappy for compress data and uncompress