finished winks scripts, refining search algorithms