make gadget smarter about when to output debug info, add more debugging.
make gadget smarter about when to output debug info, add more debugging.

unhangout/unhangout,unhangout/unhangout,unhangout/unhangout,unhangout/unhangout