improved sms, pagination and authorize