be a bit more careful about matching LMPiML's type system