super refactoring no templateManager