imp inflate_reader and deflate_writer