addt debugging in setlock