fixing parallelism and exception handling