changed optimize to a function, added rm -r tmpunrar/* to screen scripts