prepare data for agents and events