updates to masterSgeConsolidate.R