pubsub and topic working