add semaphore to config