rm useless files and cleanup