adding check and test for deflate algo