add ability to write environment properties

why do u need that? why don't we have tests for that?