made parallel_for tcp-able.