implement wldsearch (unfinished)