initial attempt at interfacing to MQTT