add spm configuration