possibly completed search_for_environment.sh