compatible with spm 2.1.0