add publish data mechanism
very basic routing