enable compression only when compression is desired-