add and configure Smarty