display thread, mutexes, timer fix