added ability to disable compression