migrate spm@3.x