Solving bug with interest-table
diff --git a/include/sync-app-socket.h b/include/sync-app-socket.h
index cf888d3..851a14c 100644
--- a/include/sync-app-socket.h
+++ b/include/sync-app-socket.h
@@ -87,6 +87,9 @@
   uint32_t
   getNextSeq (const std::string &prefix, uint32_t session);
 
+  SyncLogic &
+  getLogic () { return m_syncLogic; }
+  
 private:
   void 
   passCallback(const std::vector<MissingDataInfo> &v) {m_newDataCallback(v, this);}
diff --git a/include/sync-leaf.h b/include/sync-leaf.h
index 95dff55..345be46 100644
--- a/include/sync-leaf.h
+++ b/include/sync-leaf.h
@@ -75,7 +75,7 @@
 inline std::ostream &
 operator << (std::ostream &os, const Leaf &leaf)
 {
-  os << leaf.getInfo () << "(" << leaf.getSeq () << ")";
+  os << *leaf.getInfo () << "(" << leaf.getSeq () << ")";
   return os;
 }
 
diff --git a/include/sync-logic.h b/include/sync-logic.h
index d0500c8..3626437 100644
--- a/include/sync-logic.h
+++ b/include/sync-logic.h
@@ -123,6 +123,9 @@
   virtual void StopApplication ();
 #endif
   
+  void
+  printState () const;
+
 private:
   void
   delayedChecksLoop ();