changed signature for agent timeout