add reverse index for targets
rm threadlocal