modify metric types to match external ABI