cv and rec cannot share tmp dir, so changed to tmp-cv and tmp-rec