updated template and config