first example working
disconnection detected