added possibility to override templates