more refactoring. started implementation of user-driven guided import process.