adding some optimization settings

still need to test