add optimization flag