fixed wait_for_host