remake for SMSgateway