pubsub mediator for state distribution