added support for dict-style environments