add metrics support