dry lib, raise error on search failure (tests not passing!)