added env() and set_all