extend base template