use uniqid instead of serial for tid (closes #2393)