[FIX] multiple instance capability for template engine