added basic mpi elements in