rm some file, and change some dir logic