apply Richard Tilley's parallelization changes