add ability to write environment properties

This docstring looks... damaged.