add template engine