better config with custom templates