add lock option for single mode