normalize config