parallelize script execution across block so there is no parallel loop inside another parallel loop