lock name should be either lock or name.