updated sysex write using begin/end blocks