fixed tee in multiprocess