debug locking