more sms gateway oriented code