make compression optional