remove threadlocals, lower logging