refactored some flowcell qc