templates and config