added retries and sleep for wget