reader: add deflate/snappy compression