make sure pubsub is enabled before doing anything