added lock discovery for xml mind