Fixed sms sending and some legacy scripts