debuging reconnecting bug