parseTemplate is now global via hack