add crude midi loading support