updated soc shell script