add some debugging to sms complete method