probably should made a template web-resource support class to hide some of these common details duplicated already in a few places now.