added some MPI code to tev