fixed haskell, md; added dispatch