get rid of semaphores