adding context to pubsub callbacks as first argument