nit: can't we just check for ```parent.dataset.threadId``` here?