repaired parallel_for for TCP
repaired parallel_reduce for TCP