remove tmp and output