better return value for err exit to get_config