mqtt and config replacement