Revert "updated where the check on available TDs is done"

This reverts commit a5b79b5bd86a7c43686f1432066760fcb5243fc9.
Revert "made nextTID a local static."

This reverts commit c1fd0065e152b40217ceb97e2544ee3d1f7e1344.