add failsearch script
Merge pull request #658 from maraoz/add/failsearch

add failsearch script