change get_environment by name parameter