updated code in ImportPackages.java