adding deflate support. closes #2