added location "purpose" parsing