rename *_env functions to env_*