changes to shell wait with procIDs for each condition instead