adaptations for changes in underlying metrics API
Merge pull request #34 from loomis/master

adaptations for changes in underlying metrics API