add curl retry