add --wait flag to hosts command