split collectProcessOutput' out of pipeProcessChunks