refs #1 change in a way that allows you to specify a template type