remove all usages of Thread.local