add smarty-mode