added parallelize and handleError