a bunch of if-then for imports