use the new WV macro to write to environments