add thread ahead generator