bug fix -- added set_parallelism