sms plugin working version

please review