add debug code
fix the reconnecting issue
Merge pull request #9 from NoahShen/exp

add debug code
fix the reconnecting issue