add config to disable semaphore