added snappy support