add verbosity to api wait function