added sms functions