modified for MPMD style runs so that it can run on BG/P