changed endpoint to /agg