Clean up most of unrealted things ,warnings and so