added error and ambiguous location handling