add smarty.