refactor pcl_agents