fetchTemplate helper