temp test code for pubsub