add lock command