refactoring and fixing handling of sysex status