add lock analysis