template shenanigans