moved conven wrappers for pairs here from libmtm