add ability to write environment properties

your suggestions?