fixed time-out error generation; error handling in prefix_search and fold
Merge Leapsight branch