refactor smsglobal