added stages to driver, and some qc functions