New version of mainsms_api