many hours of unfruitful effort trying to load and cache stupid external template files... sigh.