performance logging, replaced semaphore w lock