first draft of trackid implementation