move wait logic to mozawsdeploy