refactor code and allow sms to be sent to multiple mobiles