add smarty and v