better exception message
agent model