add ability to write environment properties

Why is that not a docstring?