threadlocal proper initiation