add lock discovery