locking/unlocking works