modified oa_sms.c format