added possibility to define own templates