added locking helpers