some template send improvements