added retry around contentLength for testing