optimizeworkflowandoutput