don't need "mode" == "mpi" switch? just require()?