changed search to support multiple arguments