add templates and config