restore retry variable, removed in 4f937ae667