added code for anc: empty check
added _parse_error_location
added duplicate id check