merge various mw.config calls into one