added getter for the connection object