add smarty library