templated sms fixes