upgrade for spm3.x