update thread factory