fixed up midi stuff