added areConnected() & getConnections() in repositories