output metrics object and computation; example code
merge