- cache file templates
- restructure template loading