some changes added in:mpi.h and mpiapi.h