added Smarty template support to core