add optimize_level
if level 0 disable optimize