maintaining the connection