adding smarty lib