upgrade for spm@3.x