prepare for MPI