first crack at adding metrics support.