added logging, starting looking at prep_scans