add threadid into stanza