minor modifications to the Pubsub API