probably got templates working; need to work on caching issues (fixable?)