add debug method to classify failed jobs