add arg to hook

Found it! There's two functions my code calls, and in this commit one of them had its signature changed to use an extra arg, which I have to pass to the hook. (The other one is generateID.)