add getter for connection