migrating to spm, adding progress bar