add pubsub callback variable