added debug possibility to search/3