made cpu detection async
add clean end file feature
fix build issue