added retries to profile4.js because it's flaky