oops not so smart that last one, fix the pid we wait on