modify threadlocal