[Ernesto] - fixing agent method call
[Ernesto] - ignoring the status 'string' case for comparingw