improve MQTT compiler