add timeout for onParallel