add retrying for up to 10 seconds