added flag for parallel execution