external templates now work