added deflate/inflate