res_raw_dir? seems the variable names in this file are not consistent.