remove file on exit and removed bad printouts