added objectid to the agent case class