added set_env