read in templates only when ready