change all old get_env calls