added the mdr stuff