handle single agent case