add checks for spsid and ppsid
Merge pull request #384 from licaiguo/check-spsid-ppsid

add checks for spsid and ppsid