add search for internal vs external agents