reorder and optimize imports