make some changes to support the ever popular midi-parser module