first working version of the mpi submit script