updating leancor script to allow parallel execution