debugging lock file mechansim