fixing agent.gdb macro to use common definition