remove debug print
add auto reconnect