added the more advanced version of the YAML Environment variable script