add failsearch script

Didn't add tests because this is a testing script