added if-else clauses for Deflate to DCPWrapper