multiple fixes for crossvalidation utilities: returning the offsetDict  after offset selection, exiting the thread after it finishes, fix the index of path counting
fix paths indices for the cross validation