incorporated pubsub middleware, testing caching