change compression ratio and misc cleanup