add return of data received while connecting
add printing of connect data