adjusted to use the new API for MDHIM