implemented crud actions for agents