expand get_environment