fix load_from_environment methof