make compression configurable