precautions with mutexes
log and notifications moved to main thread via slots and signals