make a wait for closure so we can only call the deployment result once