some rework on template loading. Always use IDs!