Revert "Revert "added basic hub protocoll""

This reverts commit 9ff60da3c374d921e02db52bf3b4d443610955d2.