update of parser to retry queries