modified MQTT publisher component