possible to define templates and icluding it to generate tables