updated metrics integration