add some default vars for template class and render method