added semaphore for updatetasks