introduced template getter and basic routing