add sleep + retry for failed upload