made resource_has_match have an acutal loop
handle versions with embedded underscores