template from config