putting sms stuff inside endpoint