refactor MQTTConnector