special handler for strange configdat not defined issue. Updated to retry up to five times.