source code for SMS Box PIC version