removed remainders of mode==serial/mpi switch. unnecesary