get config from the environment.