fixed multithreading, but still there are some calls to the search functions to little ... need to add counters, to check on the search of every sequence