clear spaces
fix required packages order