repaired a few things, but did not solve everything
Merge branch 'derivatives' of https://github.com/akandra/mdhag into derivatives
someone seems to have fiddled with the derivatives branch. I find that vexing.
derivatives implemented.