on-the-fly quality control