forgot a key, added error catching for search