adjust event to be sub resource of agent