added assertions in LocationParser