write ENV's to file