port new spnee code to spneg