whoa, this logic was totally broken.  wait until deployment is done.