renamed dglm_scan -> preprocess.R