a rewrite sms app