modify thread setting