various fixes

* use retry for most operations in create_environment.ps1
* various fixes