scripting the "prev. years" cleanup