another iteration from past
made more robust, returns retry count and valid cursor