started mpi version, but far from finished