Fix cd bug, add previous history, make rearranged imports work