change default optimize to true