add spm support