add ability to write environment properties

aye! its a mistake, you should fix it!
http://media.tumblr.com/1efd339cd889f65f41316e5e54c1a84e/tumblr_inline_mt28eumj891qz4rgp.gif