added error handling to multisearch