a hmint-friendly mush implementation