check diagnostics after each phase