add more debug output to find timeout/race condition