add some debug output to look for timeout/wait counting