added ready? and wait_for methods