update thread file