adding retry mechanism in case of parse failure