fix errors
delete tenp files