refactored metrics to use codahale metrics