reorder the config hierarchy