load_config should accept the environment as a parameter