remove many thread_local