merged findchar
TODO: threshold, preproc to main, +a