templates paths refactoring