update and remove useless files