update for spm@3.x