test the new infer  and clean up some unnecessary class in mdr