remove threadlocal