moving trace dependent logic from proxy to aggregate