add lock option