changed publish topic handling