semaphores. maybe.