implement waitFor methods