add client publisher middlewares