ENH: use MD if it exists