fixed import to import directories correctly, though dialog is still
clunky