added a lock setting
Merge pull request #7 from kubukoz/master

added a lock setting