add getv, getvs, and gets template functions