changes to new connection implementation and starting the data handling