add sms__chkstat calls after other calls into sms library