1. inside detection finished
2. remove useless files