localizing the proxy kpi logic