added ns coding protocol for thread list

doing unit test right now