changed mqtt config handling to new place