fixed the mpi bug
all works
merged in mpi branch