adding PubSub support/testing based on demo