handling unescaped templates and new 'new' target