better retry logic
stat counter