some notes on locking