updated metrics script for CP