trying to zero in on agent creation problem