canonicalize imports