optimize in parallel whole output dir