add ability to write environment properties

Ehm, why?