add ability to write environment properties

@mavlyutov and thingys are not thingies too, aren't they?