support for publishing pubsub events