drastically simplified pubsub examples