extend base templates