added spm preprocessing pipeline