accommodate template being returned as array