fix multi threading issues