fix reconnect routine
move checksumming to main.  initial stats tracking