fixed sysex processing, add some midi event handlers