add the ThreadState skeleton