add some metrics tools