add flash / air error detection