added a wait_for_service that takes a list
Added catch for search badfun