working on the SPM to prov extraction