use passed in name to register template