fix threads and reconnect