add logging to timeout/popup stuff