turns out the semaphore was unneeded