added locking/unlocking