setting it to pubsub is required