get_config revised for a bette robustness.