use new api in sms.py