threadworker changes