maps and template inheritance