add warning if corruption detected