updated to support mosquitto options