static mode mostly works; need to have separate *.txt files for files and directories to remove