added the spm8 extract dependencies code