update the fetch and merge script to add a short delay before each retry