updates to mvd library to enable merging. Still not quite there.