delete useless files and modify log format