updated agent scheme