added deflate writer