generate templates in correct namespace