changes runOneOptimization to accept array of strings