wide search and other problems fixed