support locking.