organize and collapse imports