00 to whoever can figure out why the agent demo throws a classcastexception