template and config update