added error checking to get_local_config()