Add environments type

* add start of global environment handling