added an option for compression during export