wait for our pids to finish