added the smssync code