change msgPublisher as a single instance