changed pbs scrpts to use ps output