changes to SAPS scripts