few mpi modifications