debug wait for io