changed call from wait_on_process (which expects a process obj) to wait_on_process_group (which takes a process id)