made nextTID a local static.

made activeRequest local to main