added retry for fetching all books