new SSMEG script