write match area
honor CASEDIR
undo accidential deletion of needles
rename needle