format list output
better error message on spm list