recreating config validation