and so it begins: template utilities and functions